import request from '@/utils/request'

// 查询七率原物料列表
export function listMaterial_sum(query) {
  return request({
    url: '/productionProcess/material_sum/list',
    method: 'get',
    params: query
  })
}

// 查询七率原物料详细
export function getMaterial_sum(id) {
  return request({
    url: '/productionProcess/material_sum/' + id,
    method: 'get'
  })
}

// 新增七率原物料
export function addMaterial_sum(data) {
  return request({
    url: '/productionProcess/material_sum',
    method: 'post',
    data: data
  })
}

// 生成七率原物料
export function createMaterial_sum(data) {
  return request({
    url: '/productionProcess/material_sum/createSum',
    method: 'post',
    data: data
  })
}


// 修改七率原物料
export function updateMaterial_sum(data) {
  return request({
    url: '/productionProcess/material_sum',
    method: 'put',
    data: data
  })
}

// 删除七率原物料
export function delMaterial_sum(id) {
  return request({
    url: '/productionProcess/material_sum/' + id,
    method: 'delete'
  })
}
